package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 员工对象 yg_employee
 * 
 * @author 你虎啊
 * @date 2022-11-25
 */
public class YgEmployee extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 员工id */
    private Long empid;

    /** 员工姓名 */
    @Excel(name = "员工姓名")
    private String empname;

    /** 职位主键id */
    @Excel(name = "职位主键id")
    private Long pid;

    /** 员工生日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "员工生日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 入职时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入职时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date hiredate;

    /** 离职时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "离职时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date resignationtime;

    /** 籍贯 */
    @Excel(name = "籍贯")
    private String nativeplace;

    /** 电话 */
    @Excel(name = "电话")
    private String phonenumber;

    /** 学历（0无，1 小学，，，） */
    @Excel(name = "学历", readConverterExp = "0=无，1,小=学，，，")
    private Integer education;

    /** 教育背景 */
    @Excel(name = "教育背景")
    private String educations;

    /** 身份证 */
    @Excel(name = "身份证")
    private String identityCard;

    /** 现居住地 */
    @Excel(name = "现居住地")
    private String residence;

    public void setEmpid(Long empid) 
    {
        this.empid = empid;
    }

    public Long getEmpid() 
    {
        return empid;
    }
    public void setEmpname(String empname) 
    {
        this.empname = empname;
    }

    public String getEmpname() 
    {
        return empname;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setBirthday(Date birthday) 
    {
        this.birthday = birthday;
    }

    public Date getBirthday() 
    {
        return birthday;
    }
    public void setHiredate(Date hiredate) 
    {
        this.hiredate = hiredate;
    }

    public Date getHiredate() 
    {
        return hiredate;
    }
    public void setResignationtime(Date resignationtime) 
    {
        this.resignationtime = resignationtime;
    }

    public Date getResignationtime() 
    {
        return resignationtime;
    }
    public void setNativeplace(String nativeplace) 
    {
        this.nativeplace = nativeplace;
    }

    public String getNativeplace() 
    {
        return nativeplace;
    }
    public void setPhonenumber(String phonenumber) 
    {
        this.phonenumber = phonenumber;
    }

    public String getPhonenumber() 
    {
        return phonenumber;
    }
    public void setEducation(Integer education) 
    {
        this.education = education;
    }

    public Integer getEducation() 
    {
        return education;
    }
    public void setEducations(String educations) 
    {
        this.educations = educations;
    }

    public String getEducations() 
    {
        return educations;
    }
    public void setIdentityCard(String identityCard) 
    {
        this.identityCard = identityCard;
    }

    public String getIdentityCard() 
    {
        return identityCard;
    }
    public void setResidence(String residence) 
    {
        this.residence = residence;
    }

    public String getResidence() 
    {
        return residence;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("empid", getEmpid())
            .append("empname", getEmpname())
            .append("pid", getPid())
            .append("birthday", getBirthday())
            .append("hiredate", getHiredate())
            .append("resignationtime", getResignationtime())
            .append("nativeplace", getNativeplace())
            .append("phonenumber", getPhonenumber())
            .append("education", getEducation())
            .append("educations", getEducations())
            .append("identityCard", getIdentityCard())
            .append("residence", getResidence())
            .toString();
    }
}
